package cc.autoapi.pucong.auto.flow.core.flow.execNode.task.system;


import cc.autoapi.pucong.auto.flow.core.flow.execNode.entity.node.NodeParamIn;
import cc.autoapi.pucong.auto.flow.core.flow.execNode.entity.node.NodeParamOut;
import cc.autoapi.pucong.auto.flow.core.flow.execNode.task.AbstractTask;

import java.util.ArrayList;
import java.util.List;

public class CronConfigTask extends AbstractTask {

    private List<NodeParamIn> paramsIns;
    private List<NodeParamOut> paramsOuts;

    public CronConfigTask() {
        paramsIns = new ArrayList<>();
//        NodeParamIn cron = new NodeParamIn()
//                .setParamCode("cron")
//                .setDateType(DataTypeEnum.STRING)
//                .setDefaultValue("0/1 * * * * *")
//                .setNeedValue(true);
//        paramsIns.add(cron);

        paramsOuts = new ArrayList<>();
    }

    @Override
    public void run() {
    }

    @Override
    public String getTaskName() {
        return "定时任务配置节点";
    }

    @Override
    public Boolean getTaskParamInAuto() {
        return true;
    }

    @Override
    public String getTaskSvgIcon() {
        return "<svg t=\"1728283867126\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"10324\" width=\"32\" height=\"32\"><path d=\"M1004.7488 296.448a38.5024 38.5024 0 0 1-51.2-12.0832 538.8288 538.8288 0 0 0-272.896-209.4592 38.4512 38.4512 0 0 1-24.8832-46.08 38.2464 38.2464 0 0 1 49.1008-26.8288 615.4752 615.4752 0 0 1 312.6784 239.9232 38.4 38.4 0 0 1-12.8 54.528zM368.2304 28.6208a38.2464 38.2464 0 0 0-49.1008-26.624A615.4752 615.4752 0 0 0 6.4512 241.92a38.4 38.4 0 0 0 12.8 54.528 38.5024 38.5024 0 0 0 51.2-12.0832 538.8288 538.8288 0 0 1 272.896-209.4592 38.4512 38.4512 0 0 0 24.8832-46.2848zM512 204.8a409.6 409.6 0 1 0 409.6 409.6 409.6 409.6 0 0 0-409.6-409.6z m0 742.4a332.8 332.8 0 1 1 332.8-332.8 332.8 332.8 0 0 1-332.8 332.8z m230.4-294.4a38.5024 38.5024 0 0 1-38.4 38.4h-230.4a38.5024 38.5024 0 0 1-38.4-38.4v-230.4a38.4 38.4 0 0 1 76.8 0V614.4h192a38.5024 38.5024 0 0 1 38.4 38.4z\" fill=\"#00C080\" p-id=\"10325\"></path></svg>";
    }

    @Override
    public List<NodeParamIn> getPropertyParamsIns() {
        return paramsIns;
    }

    @Override
    public List<NodeParamOut> getPropertyParamsOuts() {
        return paramsOuts;
    }
}
